package com.yswy.theater.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yswy.common.vo.dto.BaseFilter;
import com.yswy.theater.entity.TheaterPlayBindType;
import com.yswy.theater.mapper.TheaterPlayBindTypeMapper;
import com.yswy.theater.service.TheaterPlayBindTypeService;
import com.yswy.theater.vo.req.ListTheaterPlayReqVo;
import com.yswy.theater.vo.res.TheaterPlayResVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class TheaterPlayBindTypeServiceImpl extends ServiceImpl<TheaterPlayBindTypeMapper, TheaterPlayBindType>
        implements TheaterPlayBindTypeService {

    @Override
    public Page<TheaterPlayResVo> getTheaterPlayByType(ListTheaterPlayReqVo listTheaterPlayReqVo, Integer sex) {

        return baseMapper.getTheaterPlayByType(listTheaterPlayReqVo.getTypeId() , sex,
                new Page<BaseFilter>(listTheaterPlayReqVo.getPageIndex(), listTheaterPlayReqVo.getPageSize()));
    }
}
